Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a lazy representation of a list of sliding windows #2278

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

AdeelH
Copy link
Collaborator

@AdeelH AdeelH commented Nov 22, 2024

Overview

This PR implements a lazy representation of a list of sliding windows allowing arbitrarily long lists of sliding windows (from arbitrarily large extents) to be represented.

Previously, Box.get_window() would return a list[Box], which could be very large if there were a lot of windows. Now, it returns a SlidingWindows object that can be indexed like a list and generates windows dynamically when indexed.

Checklist

  • Added unit tests, if applicable
  • Updated documentation, if applicable
  • [ ] Added needs-backport label if the change should be back-ported to the previous release
  • PR has a name that won't get you publicly shamed for vagueness

Notes

N/A

Testing Instructions

See unit tests.

@AdeelH AdeelH force-pushed the sliding_windows branch 2 times, most recently from b9b2394 to 17dd27f Compare November 26, 2024 21:50
allowing arbitrarily long lists of sliding windows (from arbitrarily large extents) to be represented
@AdeelH AdeelH marked this pull request as ready for review November 27, 2024 00:48
@AdeelH AdeelH merged commit bb01d48 into azavea:master Nov 27, 2024
2 checks passed
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.29%. Comparing base (fb3b199) to head (17dd27f).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2278      +/-   ##
==========================================
- Coverage   90.31%   90.29%   -0.03%     
==========================================
  Files         199      199              
  Lines        9925     9965      +40     
==========================================
+ Hits         8964     8998      +34     
- Misses        961      967       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AdeelH AdeelH deleted the sliding_windows branch November 27, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant